package tangrui;

import java.util.Arrays;
import java.util.List;

/**
 * @Classname com.tr.company
 * @Description TODO
 * @Version 1.0.0
 * @Date 2022/12/23 11:26
 * @Created by tangrui
 **/
public class LeetCode {

    public static void main(String[] args){
        List<Integer> list = Arrays.asList(2,2,2);
        System.out.println(plusMult(list));
    }



    public static String plusMult(List<Integer> A) {
        // Write your code here
        Integer temp = 0,Reven = 0,Rodd=0;
        boolean evenFlag = false,oddFlag = false;
        if(A.size()>0){
            for(int i=0;i<A.size();i++){
                temp = A.get(i);
                if(i%2 == 0){
                    if(i == 0){
                        Reven = temp;
                    }else{
                        if(!evenFlag){
                            Reven *= temp;
                            evenFlag = true;
                        }else{
                            Reven += temp;
                            evenFlag = false;
                        }
                    }
                }else{
                    if(i == 1){
                        Rodd = temp;
                    }else{
                        if(!oddFlag){
                            Rodd *= temp;
                            oddFlag = true;
                        }else{
                            Rodd += temp;
                            oddFlag = false;
                        }
                    }
                }
            }
        }
        Rodd = Rodd%2;
        Reven = Reven%2;
        return (Rodd>Reven)?"ODD":(Reven>Rodd?"EVEN":"NEUTRAL");

    }
}
